﻿using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Runtime.CompilerServices.RuntimeHelpers;
using System.Text.RegularExpressions;

namespace DeZhen.Core.Framework.Conmon
{
    public static class ExtentionCommon
    {
        public static String SubString(this String str,String start,String end)
        {
            Regex rg = new Regex("(?<=(" + start + "))[.\\s\\S]*?(?=(" + end + "))", RegexOptions.Multiline | RegexOptions.Singleline);
            return rg.Match(str).Value;
        }
    }
}
